package com.example.myshop.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("t_dict_district")
public class District {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;//唯一标识记录
    private String parent;//父区域代号
    private String code;//本身代号
    private String name;//代号所表示的名称
}
